package edu.westga.cs3152.wordmojo;

public class Controller {
	GameBoard board;
	GamePanel panel;
	
	/**
	 * Constructor for the controller that accepts a board and a panel.
	 * 
	 * @param board
	 * @param panel
	 */
    public Controller(GameBoard board, GamePanel panel) {
    	this.board = board;
    	this.panel = panel;
    }

	public void selectOrDropTile(Object source) {
		board.selectOrDropTile(source);
		panel.refresh();
		
	}
	
	public void evaluateBoardSubmission(){
		board.evaluateBoard();
		panel.refresh();
	}

	public void showHints() {
		board.showHint();
		panel.refresh();
	}
}
